package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @ProjectName: AptitudeAndroid
 * @Package: com.cj.mobile.iabp.mvp.model.entity
 * @ClassName: SalesGoodsInfo
 * @Description: 销售送货单详情 - 商品详情
 * @Author: WLY
 * @CreateDate: 2023/4/24 11:10
 */
public class SalesGoodsInfo implements Parcelable {

    // 出库单号
    private String outStockNo;
    // 单位重量
    private String unitWeight;
    // 型号名称
    private String modelName;
    // 品牌名称
    private String brandName;
    // 单位
    private String unit;
    // 数量
    private double quantity;
    // 品类名称
    private String catName;
    // 出库重量
    private double outWeight;
    // 签收重量
    private double weight;
    // 税收成本
    private double taxCost;
    // 仓库名称
    private String warehouseName;

    public String getOutStockNo() {
        return outStockNo;
    }

    public void setOutStockNo(String outStockNo) {
        this.outStockNo = outStockNo;
    }

    public String getUnitWeight() {
        return unitWeight;
    }

    public void setUnitWeight(String unitWeight) {
        this.unitWeight = unitWeight;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public double getOutWeight() {
        return outWeight;
    }

    public void setOutWeight(double outWeight) {
        this.outWeight = outWeight;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getTaxCost() {
        return taxCost;
    }

    public void setTaxCost(double taxCost) {
        this.taxCost = taxCost;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.outStockNo);
        dest.writeString(this.unitWeight);
        dest.writeString(this.modelName);
        dest.writeString(this.brandName);
        dest.writeString(this.unit);
        dest.writeDouble(this.quantity);
        dest.writeString(this.catName);
        dest.writeDouble(this.outWeight);
        dest.writeDouble(this.weight);
        dest.writeDouble(this.taxCost);
        dest.writeString(this.warehouseName);
    }

    public void readFromParcel(Parcel source) {
        this.outStockNo = source.readString();
        this.unitWeight = source.readString();
        this.modelName = source.readString();
        this.brandName = source.readString();
        this.unit = source.readString();
        this.quantity = source.readDouble();
        this.catName = source.readString();
        this.outWeight = source.readDouble();
        this.weight = source.readDouble();
        this.taxCost = source.readDouble();
        this.warehouseName = source.readString();
    }

    public SalesGoodsInfo() {
    }

    protected SalesGoodsInfo(Parcel in) {
        this.outStockNo = in.readString();
        this.unitWeight = in.readString();
        this.modelName = in.readString();
        this.brandName = in.readString();
        this.unit = in.readString();
        this.quantity = in.readDouble();
        this.catName = in.readString();
        this.outWeight = in.readDouble();
        this.weight = in.readDouble();
        this.taxCost = in.readDouble();
        this.warehouseName = in.readString();
    }

    public static final Creator<SalesGoodsInfo> CREATOR = new Creator<SalesGoodsInfo>() {
        @Override
        public SalesGoodsInfo createFromParcel(Parcel source) {
            return new SalesGoodsInfo(source);
        }

        @Override
        public SalesGoodsInfo[] newArray(int size) {
            return new SalesGoodsInfo[size];
        }
    };
}
